#ifndef NEWSVIEWER_HPP
#define NEWSVIEWER_HPP

#include <string>
#include <QDialog>

#include "ui_newsviewer.h"

using namespace std;

class NewsViewer : public QDialog,public Ui::NewsViewer
{
    Q_OBJECT

public:
    NewsViewer(int newsnum,string newscontent[],string newslink[],QWidget *parent = 0);
private:
    int newsnum,currentnewsnum;
    QString newscontent[100],newslink[100];

private slots:
    void nextNews();
    void previousNews();
    void openBrowser();
};

#endif // NEWSVIEWER_HPP
